﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class news : System.Web.UI.Page
{
    dulieuDataContext db=new dulieuDataContext();
    protected void Page_Load(object sender, EventArgs e)
    {
        rpt_news.DataSource = from o in db.News where o.Cate_ID == Convert.ToInt32(Request.QueryString["nhom-tin"]) select o;
        rpt_news.DataBind();
        lblnhomtin.Text =
            (from o in db.Cates where o.Cate_ID == Convert.ToInt32(Request.QueryString["nhom-tin"]) select o.Name).
                SingleOrDefault();
    }
}